import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home.vue'
import Login from '@/pages/Login.vue'
import Regist from '@/pages/Regist.vue'
import Logined from '@/components/Logined.vue'
import Upload from '@/pages/Upload.vue'
import Cart from '@/pages/Cart.vue'
import Shoppingclass from '@/pages/Shoppingclass.vue'
import Shoppingupload from '@/pages/Shoppingupload.vue'
import Goodslist from '@/pages/Goodslist.vue'
import Namelist from '@/pages/Namelist.vue'
import Goodsdetail from '@/pages/Goodsdetail.vue'
import Upupload from '@/pages/Upupload.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/user/login',
      component: Login
    },
    {
      path: '/third/user/regist',
      component: Regist
    },
    {
      path: '/user/logined',
      component: Logined
    },
    {
      path: '/third/user/upload',
      component: Upload
    },
    {
      path: '/cart',
      component: Cart
    },
    {
      path: '/user/shoppingclass',
      component: Shoppingclass
    },
    {
      path: '/shoppingupload',
      component: Shoppingupload
    },
    {
      path: '/user/goodslist/:abc',
      component: Goodslist
    },
    {
      path: '/user/namelist/:qwe',
      component: Namelist
    },
    {
      path: '/third/user/goodsdetail/:bnm',
      component: Goodsdetail
    },
     {
      path: '/upupload',
      component: Upupload
    }
   
  ]
})
